package com.ljp.spring_boot.controller;

import com.ljp.spring_boot.model.User;
import com.ljp.spring_boot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author ljp
 * @since 2020-05-20
 */
@RestController
public class UserController {
    @Autowired
    private UserService userService;
    @RequestMapping(value = "/user")
    public  Object  setUsers(){
        List<User> users = userService.selectList(null);
        return users;
    }

}

